package com.fzebu.fastboot.form.parser.impl;

import com.fzebu.fastboot.form.parser.AbstractTypeParser;

import java.lang.reflect.Field;

/**
 * @author Jack
 * @version 1.0.0
 * @create 2020/1/26 22:53
 */
public class TextTypeParser extends AbstractTypeParser {

    public TextTypeParser(Field field, String alias, String value) {
        super(field, alias, value);
    }

    @Override
    public Object parse() {
        if (this.value == null) {
            return "";
        }
        return value;
    }
}
